import React, { Component } from 'react';
import { connect } from 'react-redux';
import Top from '../../component/top_two/brandIntroduction_top';
import Left from './classification_left/classification_left';
import Right from './classification_right/classification_right';
import FootCon from '../../component/footCon/footCon';
import { setRouterName } from '../../store/public/action';
import './classification.scss';

class Classification extends Component {

    componentWillMount() {
        const { dispatch } = this.props;
        dispatch(setRouterName(this.props.location.pathname, this.props.history));
    }

    render() {
        return (
            <div className="classification">
                <Top />
                <div className="clearfix">
                    <Left />
                    <Right />
                </div>
                <FootCon />
            </div>
        )
    }
}

export default connect()(Classification);